/**
 * Project Name:JingZhenGu
 * File Name:StyleCategory.java
 * Package Name:com.gc.jingzhengu.vo
 * Date:2014-6-19上午10:23:12
 * Copyright (c) 2014, wangyd523@gmail.com All Rights Reserved.
 *
 */

package com.jzg.jcptadmin.data.vo;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * ClassName:StyleCategory <br/>
 * Function: 车型分类实体. <br/>
 * Reason: TODO ADD REASON. <br/>
 * Date: 2014-6-19 上午10:23:12 <br/>
 * 
 * @author 汪渝栋
 * @version
 * @since JDK 1.6
 * @see
 */
public class StyleCategory implements Serializable, Parcelable {
	private String Year;

	private List<Style> StyleList = new ArrayList<Style>();

	public List<Style> getStyleList() {
		return StyleList;
	}

	public void setStyleList(List<Style> styleList) {
		StyleList = styleList;
	}

	public String getYear() {
		return Year;
	}

	public void setYear(String year) {
		Year = year;
	}

	@Override
	public String toString() {
		return "StyleCategory{" +
				"StyleList=" + StyleList +
				", Year='" + Year + '\'' +
				'}';
	}


	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.Year);
		dest.writeTypedList(StyleList);
	}

	public StyleCategory() {
	}

	protected StyleCategory(Parcel in) {
		this.Year = in.readString();
		this.StyleList = in.createTypedArrayList(Style.CREATOR);
	}

	public static final Parcelable.Creator<StyleCategory> CREATOR = new Parcelable.Creator<StyleCategory>() {
		public StyleCategory createFromParcel(Parcel source) {
			return new StyleCategory(source);
		}

		public StyleCategory[] newArray(int size) {
			return new StyleCategory[size];
		}
	};
}
